<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>RCP Login</title>
<link rel="stylesheet" type='text/css' href='css/style.css' />
</head>

							<c:choose>
								<c:when test="${ closewindow != null }">
									<body onLoad="setTimeout('self.close()',1)">
								</c:when>
								<c:otherwise>
									<body>
								</c:otherwise>
							</c:choose>

	<div id='loginWrapper'>
	
		<c:if test="${ reset != null }">
			<p>Log In as normal user.</p>
		</c:if>
		
		
		<div id='steps'>
		
		<form action='AuthenticateServlet' method='post'>
		
		
		<c:if test="${ action != null }">
		
		<br />
		
			<span class='loginError'>
			
				<c:if test="${ action == 'message1' }">
				
					Invalid Username and/or Password.
					
					${ numberOfTriesLeft } Tries Remaining!
					
				</c:if>
		
				<c:if test="${ action == 'message2' }">
				
					You must login to view the requested page.
					
				</c:if>
	
			</span>
		<br /><br />
		</c:if>
	
		
		<label for='username'>Username: </label>
		<input type='text' name='username' id='username' class='inputlogin' />
		
		
		<label for='password'>Password: </label>
		<input type='password' name='password' id='password' class='inputlogin' />
	
		
		
		<label for='rememberMe'>Remember Me:</label>
		<input type='checkbox' name='rememberMe' id='rememberMe' />
		
		<c:if test="${ reset != null }">
			<input type="hidden" VALUE="reset" name="reset" />	
		</c:if>
		
		<p class='right'>
		<input class='loginbutton' type='submit' value='Login' />
		</p>

	
		</form>
		</div>
		
	</div>


</body>
</html>